const Service = require('egg').Service;
const Zip = require('../utils/Zip');

class Class extends Service {
  async zipSpiderCode() {
    const saveDir = this.app.baseDir + '/public/code.zip';
    await Zip.zip(this.app.baseDir + '/live_spider_client', saveDir);
  }
}

module.exports = Class;